Week 2 TFNC Training
Configure the local Git by telling it who you are. In Rstudio Terminal:
First tell Git your GitHub username e.g. dzvoti999
Second tell Git your GitHub email address e.g. cer*************i@gmail.com
To create access keys for GitHub in RStudio.
8. Click Add Key
git clone copies/clones your remote repository(GitHub) to your local Rstudiogit add command adds new or changed files in your working directory to the Git staging area.commitsgit commitcreates a snapshot of your entire repository at specific times.commits after every script change.commit should be accomanied by a commit messagegit push updates the remote repository on GitHub with local commits.git push regularly in Rstudio to stay in sync with GitHubgit pull updates your current local repository branch in Rstudio from the GitHub cloudgit pull regularly in Rstudio to stay in sync with GitHubTFNC-Assignments**Section adopted from https://docs.github.com/en/get-started/quickstart/create-a-repo
TFNC-AssignmentsAdd a ReadMe fileR gitignore template
codeSSHgit@github.com:dzvoti/TFNC-Assignments.git
New Project
Version Control
Git
e.g.git@github.com:dzvoti/TFNC-Assignments.git`Create a new file called First-script.R with the code below
adds it to the stagging area
commit
close
Your branch is ahead of origin/main by 1 commit
push changes back to githubClone the dzvoti/TFNC-Training repo to your local Rstudio.
TFNC Training - R, Rstudio and GitHub